| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | const ServiceSession = require('../../services/catering/session') |
||
| 35 | wxLogin:async function (ctx, next) { |
||
| 36 | Validate(ctx.input, { |
||
| 37 | // 'wx_js_code': 'required', |
||
| 38 | // 'wx_encrypted_data': 'required', |
||
| 39 | // 'wx_iv': 'required', |
||
| 40 | 'code': 'required', |
||
| 41 | }) |
||
| 42 | let storeId = ctx.header['store-id'] |
||
| 43 | let config = ctx.header['mina-source'] |
||
| 44 | |||
| 45 | let result = await ServiceSession.wxLogin(ctx.input.code, config) |
||
| 46 | return Response.output(ctx, result); |
||
| 47 | }, |
||
| 48 | } |